package com.leyou.order.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * lcd  2020/6/3
 * Description:
 */
@Data
@Table(name="tb_category")
public class Category {
   @Id
   @KeySql(useGeneratedKeys = true)
   private Long id;
   private String name;
   private Long parentId;
   private Boolean isParent; // 注意isParent生成的getter和setter方法需要手动加上Is
   private Integer sort;
}
